<table width="100%">
<form action="<?=url::site('group/select')?>" method="post">
<thead>
<tr>
    <th>
    	<input id="selected-all" class="chkBox" type="checkbox" name="selected_all" value=""/>
	    <img id="selected-all-icon" class="chkIcon" src="images/booleanfalse.gif" onclick="selectAll('myTable')"/>
	</th>
	<?php foreach($header as $value) { ?> <th><?=$value?></th> <?php } ?>
</tr>
</thead>
<tbody id="myTable">
<?php foreach($datas as $data) { ?>
<tr>
    <td align="center" class="check-box">
		<input class="chkBox" type="checkbox" name="selected_fld[]" value="<?=$data->id?>" />
	    <img class="chkIcon" src="images/booleanfalse.gif"/>
    </td>
	<?php foreach($rows as $value) { ?> <td><?=$data->$value?></td> <?php } ?>
	<td>
		<?php foreach($actions as $key=>$value) { ?><?=html::anchor($value.$data->id, $key)?> <?php } ?>
	</td>
</tr>
<?php } ?>
</tbody>
</table>
<input type="submit" value="submit"/>
</form>
<script type="text/javascript" src="js/table.js"></script>
